package gemini.castor.ui.server.service.impl;

import gemini.basic.manager.ProductManager;
import gemini.basic.model.ProductType;
import gemini.castor.ui.client.service.ProductTypeByCodeService;
import gemini.castor.ui.server.service.AbstractSingleService;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class ProductTypeByCodeServiceImpl extends
        AbstractSingleService<ProductManager> implements
        ProductTypeByCodeService {

    @SuppressWarnings("unused")
	private final Log logger = LogFactory
            .getLog(ProductTypeByCodeServiceImpl.class);


	@Override
	public ProductType getCategoryByCode(String code) {
		ProductType result =  duplicateExcludeFields(getServerManager().getCategoryByCode(code));
		return result;
	}
}
